//
//  GYFootViewCell.m
//  GoodLuck
//
//  Created by 郭为勇 on 2018/3/9.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYFootViewCell.h"

@interface GYFootViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *goodsImageView;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLable;

@property (weak, nonatomic) IBOutlet UILabel *goodsPriceLable;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageViewHeightCons;

@end
@implementation GYFootViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code    
}

- (void)setGoodsRecommed:(GYGoodsRecommed *)goodsRecommed {
    _goodsRecommed = goodsRecommed;
    
    [self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:goodsRecommed.goods_image_url] placeholderImage:[UIImage imageNamed:@"4"]];
    self.goodsNameLable.text = goodsRecommed.goods_name;
    self.goodsPriceLable.text = [NSString stringWithFormat:@"¥%@",goodsRecommed.goods_price];
}


@end
